import request from "@/api/request";
export default {
    getPublic: (token) => {
        return request({
            url: '/login/getPublicKey',
            method: 'get',
            headers: {'token': token}
        })
    },
    userInfo: (param,token) => {
        return request({
            url: '/user/userInfo/list',
            method: 'post',
            headers: {'token': token},
            data:param
        })
    },
    userLogin:(param,token)=>{
        return request({
            url:'/login/userLogin',
            method:'post',
            headers: {'token': token},
            data:param
        })
    },
    userRegister:(param,token)=>{
        return request({
            url:'/register/userRegister',
            method:'post',
            headers: {'token': token},
            data:param
        })
    },
    getPhoneCode:(param,token)=>{
        return request({
            url:'/login/getPhoneCode',
            method:'post',
            headers: {'token': token},
            data:param
        })
    }
}